package com.ricervcvcer.goods.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ricervcvcer.goods.entity.TbSpu;
import com.ricervcvcer.goods.vo.GoodsCategoryBrandVO;
import com.ricervcvcer.goods.vo.SkuParamVO;
import com.ricervcvcer.goods.vo.SpecSpuSkuVO;
import com.ricervcvcer.goods.vo.SpuParamVO;

import java.util.List;

/**
 * <p>
 * spu表，该表描述的是一个抽象性的商品，比如 iphone8 服务类
 * </p>
 *
 * @author moge
 * @since 2022-01-06
 */
public interface ITbSpuService extends IService<TbSpu> {
    boolean addSpuEST ();

    Page<GoodsCategoryBrandVO> getSpu(String spuName, Integer page, Integer rows,boolean searchSaleable);

    SpuParamVO selectJoin(Long id);

    void editSpu(SpuParamVO sp);

    List<SkuParamVO> getSkuBySpuId(Long spu_id);

    void create(SpecSpuSkuVO obj);

    void addSkuEST();
}
